README 
for the SAS and Stata computer programs created and used to link datasets and conduct analyses for the publication below in Medical Care:  

Please Cite:
Johnston KJ, Loux T, Joynt Maddox KE. Risk selection and care fragmentation at Medicare accountable care organizations for patients with dementia. 
Medical Care. 2023;61(8):570-578. doi: 10.1097/MLR.0000000000001876. PMID: 37411003; PMCID: PMC10328553.

Code identified below in sequential order
originally written by Kenton Johnston (johnstonkj@wustl.edu)


1 - SAS - MCBS EandM Visits - 2015 forward 
[SAS code to identify E&M visits in the FFS claims linked to the MCBS]

2 - SAS - Identfying Geriatricians - 2015 forward
[SAS code to identify geriatric specialists from public use data files and link to FFS claims linked to the MCBS]

3 - SAS - MCBS Cohort - 2015
[SAS code to create the 2015 cohort from the MCBS]

4 - SAS - MCBS Cohort - 2016 forward
[SAS code to create the 2016 - 2019 cohorts from the MCBS and output final analytic dataset for analysis in Stata]

5 - Stata - R21 Aim 1
[Stata code to conduct analysis for above-referenced Medical Care paper] 

